package com.candy.dao;

import com.candy.entity.UserVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户Mapper
 */
@Mapper
public interface UserMapper {
   //根据id删除
    int deleteByPrimaryKey(Integer uid);

   //新增用户
    int insert(UserVo record);

    //根据id查询用户
    UserVo selectByPrimaryKey(Integer uid);

    //根据用户名查询
    UserVo selectBYUserName(String username);


}